import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import '../l10n/app_localizations.dart';

class HomeUI extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: Padding(
          padding: const EdgeInsets.only(left: 16.0), // 设置距离左侧 16px
          child: FittedBox(
            fit: BoxFit.scaleDown,
            child: Text(
              AppLocalizations.of(context)!.home,
              maxLines: 1,
              style: TextStyle(fontSize: 22.0, color: Colors.black),
            ),
          ),
        ),
        title: Container(), // 占位，防止标题居中
        actions: <Widget>[
          Row(
            children: [
              // 右侧 IconButton
              IconButton(icon: Icon(Icons.add, size: 35.0), onPressed: () {}),
              SizedBox(width: 16),
            ],
          ),
        ],
      ),
      body: null,
    );
  }
}
